package com.tarasenko.web.controller;

import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.bean.ManagedProperty;

/**
 *
 * @author tarasenko
 */
@ManagedBean(name = "skinManager")
@SessionScoped
public class SkinManager extends AbstractManager implements Serializable {

    private String selectedSkin;
    @ManagedProperty(value="#{skinValuesManager}")
    private SkinValuesManager skinValuesManager;

    @PostConstruct
    public void construct() {
        selectedSkin = skinValuesManager.getDefaultSkinCss();
    }

    public String getSelectedSkin() {
        return selectedSkin;
    }

    public void setSelectedSkin(String selectedSkin) {
        this.selectedSkin = selectedSkin;
    }

    public SkinValuesManager getSkinValuesManager() {
        return skinValuesManager;
    }

    public void setSkinValuesManager(SkinValuesManager skinValuesManager) {
        this.skinValuesManager = skinValuesManager;
    }
    
}
